import Vue from 'vue'
import VueRouter from 'vue-router'
import wzMore from '../views/wzMore.vue'
import LjnGoodsMore from '../components/LjnGoodsMore.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/Index', name: 'Idnex', component: () => import('../views/Index.vue'),
    children: [
      { path: '/Index/hpGoodsList', component: () => import('../components/HpGoodsList.vue') },
      // { path: '/Index/3', component: () => import('../components/StaffCtrl.vue') },
      { path: '/', component: () => import('../components/HpGoodsList.vue') },
      { path: '/Index/LjnMore', component: () => import('../components/LjnGoodsMore.vue') },
      { path: '/Index/index', component: () => import('../components/index.vue') },
      //博松路由
      { 
        path: '/Index/bsUser',
        name: 'BsUser',
        component: () => import('../components/BsUser.vue') },
      { path: '/', component: () => import('../components/HpGoodsList.vue') },
      {
        path: '/Index/wzMore',
        name: 'wzMore',
        component: wzMore
      },
      {path: '/Index/CjAddGoods',name:'CjAddGoods', component: () => import('../components/CjAddGoods')},
    ]
  },
  { path: '/', component: () => import('../views/Index.vue') },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router